<extend name="./Public/Template/base.html" />

<block name="style">
<style type="text/css">
.cont table{margin:20px; border:#CCC 1px solid;}
.cont table td{padding:10px 20px; border-bottom:#CCC 1px solid;}
.cut_solid{background-color:#EEE;}
</style>
</block>

<block name="cont">
	<div class="title">英雄列表
        <button class="buttonA">入库</button>
        <button class="buttonA">预览</button>
    </div>
    
    <hr size="1" align="right" class="cut_solid">
    
    <form class="form_add">
    <table>
    <tr><td>英雄名称</td><td><input type="text" name="hero_name" class="textA"></td></tr>
    <tr><td>英雄图标</td><td><input type="text" name="hero_img" class="textA"></td></tr>
    <tr><td>版块标题</td><td><input type="text" name="hero_title" class="textA"></td></tr>
    <tr><td>英雄链接</td><td><input type="url"	name="hero_url" class="textA"></td></tr>
    <tr><td>英雄价格</td><td><input type="text" name="hero_price" class="textA"></td></tr>
    <tr><td>英雄定位</td><td><input type="text" name="hero_position" class="textA"></td></tr>
    <tr><td>天赋链接</td><td><input type="url" name="url_tianfu" placeholder="天赋加点" class="textA"></td></tr>
    <tr><td>技能链接</td><td><input type="url" name="url_jineng" placeholder="技能加点" class="textA"></td></tr>
    <tr><td>符文链接</td><td><input type="url" name="url_fuwen" placeholder="推荐符文" class="textA"></td></tr>
    <tr><td>皮肤链接</td><td><input type="url" name="url_pifu" placeholder="英雄皮肤" class="textA"></td></tr>
    <tr><td>链接名称</td><td><input type="text" name="link_name" placeholder="多个名称请用空格分开" class="textA"></td></tr>
    <tr><td>链接地址</td><td><input type="text" name="link_url" placeholder="多个连接请用空格分开" class="textA"></td></tr>
    </table>
    </form>
</block>

<block name="script">
<script language="javascript">
function doPreview(){
	var get_data	= $(".form_add").serialize();
	window.open("addHero?ops_type=preview&"+get_data, "_blank");
}

function doInSql(){
	var get_data	= $(".form_add").serialize();
	window.open("addHero?ops_type=save&"+get_data, "_self");
}
</script>
</block>
